import { ListModel, PageModel } from './common';

class EventPageModel extends PageModel {
  public data: EventListModel;
}

class EventListModel extends ListModel {
  public items: EventModel[];
}

class EventModel {
  public actor: string;
  public operation: string;
  public createAt: string;
  public targets: EventTargetModel[];
}

class EventTargetModel {
  public targetUrn: string;
  public targetName: string;
  public changes: TargetChangeModel[];
}

class TargetChangeModel {
  public propertyName: string;
  public newValue: string;
  public oldValue: string;
}

export {
  EventPageModel,
  EventModel
}
